package com.chuangjiangx.member.stored.ddd.domain.model;

import java.util.Objects;

/**
 * 是否删除
 */
public enum IsDelete {
    NOTDELETE("不删除", (byte)0),
    DELETE("删除", (byte)1);

    public final String name;
    public final byte value;

    private IsDelete(String name, byte value) {
        this.name = name;
        this.value = value;
    }

    public static IsDelete getDelete(byte value) {
        IsDelete[] var1 = values();
        int var2 = var1.length;

        for(int var3 = 0; var3 < var2; ++var3) {
            IsDelete isDelete = var1[var3];
            if (Objects.equals(isDelete.value, value)) {
                return isDelete;
            }
        }

        return null;
    }
}
